<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/home/include/init_home.jsp" %>
<%
	String enjoy_gubn		= StringUtil.nvl(request.getParameter("enjoy_gubn"));

	HashMap param = new HashMap();

	HomeDAO dao = new HomeDAO();
	param.put("est_yn", "Y");

	//추천선택관광
	HashList spList = dao.selectEnjoyList(param);

	//일반
	param.put("est_yn", "");
	param.put("enjoy_gubn", enjoy_gubn);
	HashList list = dao.selectEnjoyList(param);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%= HOME_NAME %></title>
<style type="text/css">
</style>
<link href="../css/home.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <%@ include file="/home/include/top_menu.jsp" %>
  <tr>
    <td valign="top" align="center" class="sub_con"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
      <!-- 좌측 네비 시작-->
        <%@ include file="/home/include/option_menu.jsp" %>
        <!-- 좌측 네비 끝-->
        <td width="50"></td>
        <!-- 컨텐츠 시작-->
        <td valign="top" align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="../images/sub/03_title_01.gif" alt="선택관광" width="99" height="31" /><img src="../images/sub/03_title_sub.gif" height="18" /></td>
                <td align="right" valign="bottom"></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="5"><img src="../images/sub/sub_line.gif" width="723" height="5" /></td>
          </tr>
          <tr>
            <td height="30"></td>
          </tr>
          <tr>
            <td class="sub_title">추천! 선택관광</td>
          </tr>
          <tr>
            <td height="30"></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <%	for (int i = 0; i < spList.size(); i+=4) { %>
              <tr>
                <td valign="top" width="25%" style="padding-right:20px">
                	<a href="./optionDetail.jsp?enjoy_id=<%= spList.get("enjoy_id",i) %>&enjoy_gubn=<%=enjoy_gubn%>&pmenu_id=<%=pmenu_id %>&menu_id=<%=menu_id %>"><img src="<%= spList.get("img_path_00", i) %>" width="165" height="133" /></a>
                	<div class="sub_txt_b"><a href="./optionDetail.jsp?enjoy_id=<%= spList.get("enjoy_id",i) %>&enjoy_gubn=<%=enjoy_gubn%>&pmenu_id=<%=pmenu_id %>&menu_id=<%=menu_id %>"><%= spList.get("enjoy_name", i) %></a></div>
                  	<!-- <div class="sub_txt_red">성인$10, 소아$5</div> -->
                </td>
                <td valign="top" width="25%" style="padding-right:20px">
        <%	if (i+1 < spList.size()) { %>
					<a href="./optionDetail.jsp?enjoy_id=<%= spList.get("enjoy_id",i+1) %>&enjoy_gubn=<%=enjoy_gubn%>&pmenu_id=<%=pmenu_id %>&menu_id=<%=menu_id %>"><img src="<%= spList.get("img_path_00", i+1) %>" width="165" height="133" /></a>
                	<div class="sub_txt_b"><a href="./optionDetail.jsp?enjoy_id=<%= spList.get("enjoy_id",i+1) %>&enjoy_gubn=<%=enjoy_gubn%>&pmenu_id=<%=pmenu_id %>&menu_id=<%=menu_id %>"><%= spList.get("enjoy_name", i+1) %></a></div>
                  	<!-- <div class="sub_txt_red">성인$10, 소아$5</div> -->
        <%	} %>
				</td>
                <td valign="top" width="25%" style="padding-right:20px">
        <%	if (i+2 < spList.size()) { %>
                	<a href="./optionDetail.jsp?enjoy_id=<%= spList.get("enjoy_id",i+2) %>&enjoy_gubn=<%=enjoy_gubn%>&pmenu_id=<%=pmenu_id %>&menu_id=<%=menu_id %>"><img src="<%= spList.get("img_path_00", i+2) %>" width="165" height="133" /></a>
                	<div class="sub_txt_b"><a href="./optionDetail.jsp?enjoy_id=<%= spList.get("enjoy_id",i+2) %>&enjoy_gubn=<%=enjoy_gubn%>&pmenu_id=<%=pmenu_id %>&menu_id=<%=menu_id %>"><%= spList.get("enjoy_name", i+2) %></a></div>
                  	<!-- <div class="sub_txt_red">성인$10, 소아$5</div> -->
        <%	} %>
                </td>
                <td valign="top" width="25%">
        <%	if (i+3 < spList.size()) { %>
					<a href="./optionDetail.jsp?enjoy_id=<%= spList.get("enjoy_id",i+3) %>&enjoy_gubn=<%=enjoy_gubn%>&pmenu_id=<%=pmenu_id %>&menu_id=<%=menu_id %>"><img src="<%= spList.get("img_path_00", i+3) %>" width="165" height="133" /></a>
                	<div class="sub_txt_b"><a href="./optionDetail.jsp?enjoy_id=<%= spList.get("enjoy_id",i+3) %>&enjoy_gubn=<%=enjoy_gubn%>&pmenu_id=<%=pmenu_id %>&menu_id=<%=menu_id %>"><%= spList.get("enjoy_name", i+3) %></a></div>
                  	<!-- <div class="sub_txt_red">성인$10, 소아$5</div> -->
        <%	} %>
				</td>
              </tr>

              <tr>
	            <td height="24"></td>
	          </tr>
    <%	} %>
            </table></td>
          </tr>


              <tr>
	            <td height="15"></td>
	          </tr>
          <tr>
            <td class="sub_title"><%= menu_name %></td>
          </tr>

          <tr>
          	<td height="20"></td>
          </tr>

    <%	for (int i = 0; i < list.size(); i++) { %>
          <tr>
            <td height="155"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="212"><a href="./optionDetail.jsp?enjoy_id=<%= list.get("enjoy_id",i) %>&enjoy_gubn=<%=enjoy_gubn%>&pmenu_id=<%=pmenu_id %>&menu_id=<%=menu_id %>"><img src="<%= list.get("img_path_00", i) %>" width="212" height="137" /></a></td>
                <td valign="top" class="thumb_txt2">
                	<p class="thumb_txt4"><a href="./optionDetail.jsp?enjoy_id=<%= list.get("enjoy_id",i) %>&enjoy_gubn=<%=enjoy_gubn%>&pmenu_id=<%=pmenu_id %>&menu_id=<%=menu_id %>"><%= list.get("enjoy_name", i) %></a></p>
                  	<p class="thumb_txt4">&nbsp;</p>
                  	<p>- 장소 : <%= list.get("location", i) %><br />
                    - 소요시간 : <%= list.get("take_time", i) %><br />
                    <!-- - 가격 :  <br /> -->
                    - 소아기준 : <%= list.get("kid_cond", i) %></p></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td class="sub_bg_line"></td>
          </tr>
    <%	} %>
          <tr>
          	<td height="80"></td>
          </tr>
        </table></td>
        <!-- 컨텐츠 끝-->
      </tr>
    </table></td>
  </tr>
  <!--풋터 시작-->
	<%@ include file="/home/include/footer.jsp" %>
  <!--풋터 끝-->
</table>
</body>
</html>
